package net.yrom.screenrecorder.rtmp;


import net.yrom.screenrecorder.task.RtmpStreamingSenderSync;

public class RESFlvDataCollecterImpl2 implements RESFlvDataCollecter{

    private final RtmpStreamingSenderSync rtmpStreamingSenderSync;

    public RESFlvDataCollecterImpl2(RtmpStreamingSenderSync rtmpStreamingSenderSync) {
        this.rtmpStreamingSenderSync = rtmpStreamingSenderSync;
    }

    @Override
    public void collect(RESFlvData flvData, int type) {
        rtmpStreamingSenderSync.sendFood(flvData,type);
    }
}
